<template>
    <div id="app">
        <update></update>
        <router-view/>
    </div>
</template>

<script>
  import { ipcRenderer } from "electron";
  import Update from "./components/update/Update";

  export default {
    name: 'app',
    components: {Update},
    data() {
      return {}
    },
    created() {
      /*返回主页*/
      ipcRenderer.on('back-index', (evt, args) => {
        this.$router.push('/');
      });
    },
  }
</script>

<style>
    * {
        margin: 0;
        padding: 0;
    }

    #app {
        font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        user-select: none;
    }

    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }

    input[type="number"] {
        -moz-appearance: textfield;
    }

    ::-webkit-scrollbar {
        width: 8px;
        height: 10px;
        background-color: transparent;
    }

    /*定义滚动条轨道 内阴影+圆角*/
    ::-webkit-scrollbar-track {
        /* background-color: #F5F5F5;*/
    }

    /*定义滑块 内阴影+圆角*/
    ::-webkit-scrollbar-thumb {
        background-color: #bbb;
        border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background-color: #888;
    }
</style>
